# demo06_func.py
def get_info02(name, age=18, score=80, gender="nv"):
    print("name: %s, age: %s" % (name, age))
    print("score: %s, gender: %s" % (score, gender))
get_info02("lisi") # name = "lisi"
get_info02("lisi", score=90)  # score -> 90

def get_info(name, age):
    print("name: %s, age: %s" % (name, age))
# 位置参数
get_info("zhangsan", 18)  # name = "zhangsan", age = 18
# 关键字参数：指名道姓赋值
get_info(age=18, name="zhangsan")  # name = "zhangsan", age = 18
# 位置参数,关键字参数混合: 关键字参数一定要在位置参数的后面
get_info("zhangsan", age=18)
# print("hello", "world", sep="---", end="===")




# 函数的调用一定要在函数的定义之后
# def func01():
#     print("func01")
# func01()
# # func02(): 函数的调用一定要在函数的定义之后
# def func02():
#     print("func02")
# func02()
